<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="css/amazeui.min.css" />
		 <link rel="stylesheet" href="css/admin.css" />
	</head>
	<body>
		<div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">公司信息查看</strong><small></small></div>
      </div>

      <hr>

      <div class="am-g">
        <div class="am-u-sm-12 am-u-md-6">
          <div class="am-btn-toolbar">
            <div class="am-btn-group am-btn-group-xs">
            </div>
          </div>
        </div>
        <div class="am-u-sm-12 am-u-md-3">
    
        </div>
        <div class="am-u-sm-12 am-u-md-3">
          <div class="am-input-group am-input-group-sm">
            <input type="text" class="am-form-field">
          <span class="am-input-group-btn">
           <form id="myform"> <button class="am-btn am-btn-default" type="button">搜索</button>
           <input type="hidden" name="index" id="index" value="1"/>
         <input type="hidden" name="size" id="size" value="5"/>
           </form>
          </span>
          </div>
        </div>
      </div>
      <div class="am-g">
        <div class="am-u-sm-12">
          <form class="am-form">
            <table class="am-table am-table-striped am-table-hover table-main">
              <thead>
              <tr>
                <th class="table-check"><input type="checkbox"></th>
                  <th class="table-id">公司ID</th>
                  <th class="table-title">公司名称</th>
                  <th class="table-type">公司行业</th>
                  <th class="table-author am-hide-sm-only">公司规模</th>
                  <th class="table-date am-hide-sm-only">审核状态</th>
                  <th class="table-set">操作</th>
              </tr>
              </thead>
              <tbody>

              </tbody>
            </table>
            <div class="am-cf">
                第<span class="currentpage"></span>页
                / 共<span class="totalpage"></span>页
              <div class="am-fr">
                <ul class="am-pagination">
                  <li class="am-disabled"> <a href="javascript:;" class="prev">上一页</a></li>
                  <li> <a href="javascript:;" class="next">下一页</a></li>
                </ul>
              </div>
            </div>
            <hr>
          </form>
        </div>

      </div>
    </div>
	</body>
    <script type="text/javascript" src="js/jquery-1.12.4.js"></script>
    <script>
        $(function () {
            function shows() {
                $.get("/page.json",$("#myform").serialize(),function (data) {
                    $(".currentpage").text(data.pageIndex);
                    $(".totalpage").text(data.totalPage);
                    var dd = eval(data);
                    $("tbody").empty();
                    var str;
                    for (var i=0;i<dd.list.length;i++){
                        console.log(i);
                        var company=dd.list[i];

                        str+="<tr><td class=\"table-check\"><input type=\"checkbox\"></td>"
                            +"<td>"+company.companyId+"</td>"
                            +"<td>"+company.companyName+"</td>"
                            +"<td>"+company.companyHangye+"</td>"
                            +"<td>"+company.companyGuimo+"</td>"
                            +"<td>"+company.auditState+"</td>"
                            +" <td>\n" +
                            "<td><a href='user.html?companyid=" + company.companyId+"'>审核</a> </td>" +
                            " </tr>";
                    }
                    $("tbody").append(str);
                },"json");
            }
            shows();


        })




    </script>

</html>
